import axios from '@/libs/api.request'

// 分页查询人员列表
export const findUserList = (data) => {
  return axios.request({
    url: '/api/as/capital/user/findUserList',
    method: 'post',
    data: data
  })
}
// 获取用户信息
export const getUserInfo = (data) => {
  return axios.request({
    url: '/api/as/capital/user/getUserInfo',
    data: data,
    method: 'post'
  })
}
// 添加或修改人员信息
export const saveUserInfo = (data) => {
  return axios.request({
    url: '/api/ac/capital/capitalUserService/saveUserInfo',
    data: data,
    method: 'post'
  })
}
// 删除人员信息 非逻辑删除
export const deleteUser = (data) => {
  return axios.request({
    url: '/api/as/capital/user/deleteUser',
    data: data,
    method: 'post'
  })
}

// 条件要素列表
export const findRuleList = (data) => {
  return axios.request({
    url: '/api/as/capital/rule/findRuleList',
    data: data,
    method: 'post'
  })
}
// 添加或修改条件要素
export const saveRule = (data) => {
  return axios.request({
    url: '/api/as/capital/rule/saveRule',
    data: data,
    method: 'post'
  })
}
// 删除要素列表
export const deleteRule = (data) => {
  return axios.request({
    url: '/api/as/capital/rule/deleteRule',
    data: data,
    method: 'post'
  })
}
// 条件要素获取的规则列表
export const findRuleSysList = (data) => {
  return axios.request({
    url: '/api/as/capital/rule/findRuleSysList',
    data: data,
    method: 'post'
  })
}

// 状态统计信息
export const getStatisticsList = (data) => {
  return axios.request({
    url: '/api/as/capital/capitalsubmit/getStatisticsList',
    data: data,
    method: 'post'
  })
}
